<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>添加书籍</title>
  </head>
  
  <body>
  	 <s:if test="#session.allBookType==null"><s:action name="showBookType" namespace="/book"></s:action></s:if> 	 
     <form action="addBook.action" method="post" namespace="/book">
     	编号:<input type="text" name="bookInfo.bookCode"><br/>
     	书名:<input type="text"  name="bookInfo.bookName"><br>
     	出版社:<input type="text" name="bookInfo.bookPress"><br>
     	类别:<s:select name="bookInfo.bookType" list="#session.allBookType" headerKey="0" headerValue="请选择图书类别" listKey="key" listValue="value" ></s:select><br/>
     	价格:<input type="text"  name="bookInfo.bookPrice"><br>
     	库存量:<input type="text"  name="bookInfo.bookNum"><br>
  		<input type="submit" value="确认">
     </form><br>
  </body>
</html>
